package com.cqjtu.eecs.controller;


import com.cqjtu.eecs.service.IEntryYearService;
import com.cqjtu.eecs.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 入学年份 前端控制器
 * </p>
 *
 * @author    
 * @since 2022-03-07
 */
@RestController
@RequestMapping("/entry-year")
@Api(tags = "年级管理模块")
public class EntryYearController {
    @Autowired
    private IEntryYearService iEntryYearService;
    @GetMapping("/selectAllYear")
    @ApiOperation("得到所有年级")
    public Result selectAllYear(){
        return Result.success(iEntryYearService.list());
    }
}
